package com.fone.player.client;

import java.util.List;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root(strict=false)
public class RecordListRst extends Rst {

	@Root(strict=false)
	public static class Consume{
		
		/** time 消费时间  */
		@Attribute(required=false)
		public long time;
		
		/** type 消费类型  */
		@Attribute(required=false)
		public int type;
		
		/** vb 消费金额 */
		@Attribute(required=false)
		public String vb;

		@Override
		public String toString() {
			return "Consume [time=" + time + ", type=" + type + ", vb=" + vb
					+ "]";
		}
		
	}
	
	@Root(strict=false)
	public static class Charge{
		
		/** time 充值时间  */
		@Attribute(required=false)
		public long time;
		
		/** rmb 充值金额  */
		@Attribute(required=false)
		public String rmb;
		
		/** rmb 支付平台  */
		@Attribute(required=false)
		public String channel;

		@Override
		public String toString() {
			return "Charge [time=" + time + ", rmb=" + rmb + ", channel="
					+ channel + "]";
		}
		
	}
	
	@Root(strict=false)
	public static class Charges{
		
		/** chargelist 充值记录list  */
		@ElementList(inline=true, entry="charge", required=false)
		public List<Charge> charges;

		@Override
		public String toString() {
			return charges+"";
		}
		
	}
	
	@Root(strict=false)
	public static class Consumes{
		
		/** chargelist 消费记录list  */
		@ElementList(inline=true, entry="consume", required=false)
		public List<Consume> consumes;
		
		@Override
		public String toString() {
			return consumes+"";
		}
		
	}
	
	/** 服务器地址. */
	@Element(required=false) 
	public String host;
	
	@Element(required=false)
	public String shost;
	
	/** chargelist 消费记录list  */
	@Element(required=false)
	public Consumes consumelist;
	
	/** chargelist 充值记录list  */
	@Element(required=false)
	public Charges chargelist;

	@Override
	public String toString() {
		return "RecordListRst [host=" + host + ", shost=" + shost
				+ ", consumelist=" + consumelist + ", chargelist=" + chargelist
				+ "]";
	}
	
	
	
}
